package org.exam.system.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.exam.system.domain.Role;
import org.exam.system.query.RoleQuery;

import java.util.List;


@Mapper
public interface RoleMapper {
    void add(Role role);

    void delete(Long id);

    Role get(Long id);

    List<Role> getAll();

    void update(Role role);

    void patchDelete(Long[] ids);


    List<Role> queryPage(RoleQuery roleQuery);

    void addRolePermission(Role role);

    void addRoleMenu(Role role);

    void deletePermissionByRoleId(Long id);

    void deleteMenuByRoleId(Long id);

    List<Long> findRoleByEmployeeId(Long id);
}
